package com.gxsf.back.repo;

import com.gxsf.back.pojo.Admin;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

/**
 * @author BeijiRonin
 * @date 2020/11/12
 */
public interface AdminRepository extends JpaRepository<Admin, Long> {

    Admin findFirst1ByNameAndPassword(String name, String password);

    Admin findFirstByName(String name);
}
